<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

/**
 * App\BaiduProject
 *
 * @property int $id
 * @property int|null $project_id
 * @property int|null $user_id
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property-read \App\Project|null $project
 * @property-read \App\User|null $user
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BaiduProject newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BaiduProject newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BaiduProject query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BaiduProject whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BaiduProject whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BaiduProject whereProjectId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BaiduProject whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BaiduProject whereUserId($value)
 * @mixin \Eloquent
 */
class BaiduProject extends Model
{
    protected $table='5kcrm_baidu_href';
    public function user(){
        return $this->hasOne(User::class,'id','user_id');
    }
    public function project(){

        return $this->hasOne(Project::class,'project_id','project_id');
    }
}
